package com.glp.work.flow.workflow.plugin.flowable.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.glp.work.flow.dto.UserTaskDto;

import lombok.Data;

/**
 * @author jinmaxiao
 */
@Data
public class WfOrderResponse implements Serializable {

    private static final long serialVersionUID = -7865847707343784262L;

    /**
     * 工单编号
     */
    private String wfId;
    
    /**
     * 任务ID
     */
    private String taskId;

    /**
     * 工单标题
     */
    private String orderTitle;

    /**
     * 外部订单编号
     */
    private String orderId;

    /**
     * 流程key
     */
    private String procDefKey;

    /**
     * 流程名称
     */
    private String procDefName;

    /**
     * 流程实例ID
     */
    private String processId;

    /**
     * 创建时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 完成时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 当前节点
     */
    private String currentNode;
    
    /**
     * 当前任务ID
     */
    private String currentTaskId;

    /**
     * 状态
     */
    private String orderStatus;

    /**
     * 表单定义内容
     */
    private String formContent;

    /**
     * 表单数据
     */
    private String formData;
    
    /**
     * 记录
     */
    private List<com.glp.work.flow.request.FlowTaskHistoryDTO> commentList;

    private List<UserTaskDto> userTaskList;

}
